<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<link href="<?php echo base_url();?>asset/admin/css/form_style.css" rel="stylesheet" type="text/css" />
<div id="main-content">
   <div class='title'>Input Data User</div>
   <p></p>
   <?php echo form_open('eproc/insert_user');?>
   <table width='100%'>
      <tr>
         <td>Nama</td>
         <td>:</td>
         <td>
            <?php echo form_input('nama',set_value('nama'));?>
            <?php echo form_error('nama');?>
         </td>
      </tr>
      <tr>
         <td>Username</td>
         <td>:</td>
         <td>
            <?php echo form_input('username',set_value('username'));?>
            <?php echo form_error('username');?>
         </td>
      </tr>
      <tr>
         <td>Password</td>
         <td>:</td>
         <td>
            <?php echo form_password('password');?>
            <?php echo form_error('password');?>
         </td>
      </tr>
      <tr>
         <td>Konfirmasi Password</td>
         <td>:</td>
         <td>
            <?php echo form_password('password_conf');?>
            <?php echo form_error('password_conf');?>
         </td>
      </tr>
      <tr>
         <td>Jabatan</td>
         <td>:</td>
         <td>
            <?php
               // menampilkan dropdown level
               foreach($level->result() as $row)
               {
                  $array_level[$row->level_id] = $row->level_nama;
               }
               echo form_dropdown('level',$array_level,set_value('level'));
            ?>
            <?php echo form_error('level');?>
         </td> 
      </tr>
         <td>Urusan</td>
         <td>:</td>
         <td>
            <?php echo form_input('urusan',set_value('Urusan'));?>
            <?php echo form_error('urusan');?>
         </td>
      </tr>
      <tr>
         <td></td>
         <td></td>
         <td><?php echo form_submit('submit','Simpan');?></td>
      </tr>
   </table>
   <?php echo form_close();?>
</div>